package com.usian.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmMaterialDto;
import com.usian.model.media.pojos.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

/**
 * ClassName: WmMaterialService
 * Author:   WGG
 * Date:    2022-11-2022/11/16-18:53
 * Version: 1.0
 * Description:
 */
public interface    WmMaterialService extends IService<WmMaterial> {
    /**
     * 图片上传
     * @param multipartFile
     * @return
     */
    public ResponseResult uploadPicture(MultipartFile multipartFile);

    /**
     * 图片的分页查询
     * @param dto
     * @return
     */
    public ResponseResult list(WmMaterialDto dto);

    /**
     * 图片删除
     * @param id
     * @return
     */
    public ResponseResult delPicture(Integer id);

    /**
     * 收藏/取消收藏
     * @param id
     * @return
     */
    ResponseResult collectOrCancelCollect(Integer id,Integer type);


}
